package com.yuhanginfo.modules.web.dao;

import java.util.List;

import com.yuhanginfo.common.persistence.CrudDao;
import com.yuhanginfo.common.persistence.annotation.MyBatisDao;
import com.yuhanginfo.modules.web.entity.WebInvoice;

/**
 * 开票管理DAO接口
 * @author lvls
 * @version 2017-10-30
 */
@MyBatisDao
public interface WebInvoiceDao extends CrudDao<WebInvoice> {

	WebInvoice getDefInvoice(String userId);

	List<WebInvoice> selectInvoiceByUserId(WebInvoice invoice);
	
	void updateIsDefByUserId(WebInvoice invoice);
	
	void updateIsDefById(WebInvoice invoice);
	
	Integer getValidate(WebInvoice invoice); 
}